package cn.itcast.java.thread;

/**
 * Author itcast
 * Date 2021/10/14 6:49
 * Desc TODO
 */
public class Demo {
    public static void main(String[] args) {
        Ticket ticket = new Ticket();
        //创建三个窗口
        Thread t1 = new Thread(ticket);
        Thread t2 = new Thread(ticket);
        Thread t3 = new Thread(ticket);
        //执行卖票
        t1.start();
        t2.start();
        t3.start();
    }
}
